import java.util.Scanner;

public class Class2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.next();
        //step1 暴力遍历出所有相邻字符的组合
        int len = s.length();
        if (s.length()==1){
            System.out.println(0);
            return;
        }
        for (int i=0;i<len;i++){

        }
    }
}
